package #(package);

import org.springframework.web.bind.annotation.*;
import #(packageBase).form.#(className)Form;
import #(packageBase).param.#(className)QueryParam;
import #(packageBase).model.#(className);
import #(packageBase).vo.PageResult;
import #(packageBase).vo.JsonResult;

import java.util.List;

/**
* #(comments) fegin接口
*
* @author #(author)
* @date #(datetime)
*/
public interface #(className)ApiService {

	@GetMapping(value = {"/V1.0/api/#(classname)/{id}"})
	#(className) info(@PathVariable #(pk.attrType) #(pk.attrname));

	@GetMapping("/V1.0/api/#(classname)/list")
	List<#(className)> list(@RequestBody #(className)QueryParam #(classname)QueryParam);

	@PostMapping("/V1.0/api/#(classname)")
	JsonResult save(@RequestBody #(className)Form #(classname)Form);

	@PutMapping("/V1.0/api/#(classname)")
	JsonResult update(@RequestBody #(className)Form #(classname)Form);

	@DeleteMapping("/V1.0/api/#(classname)/{id}")
	JsonResult delete(@PathVariable #(pk.attrType) #(pk.attrname));

}
